home *** CD-ROM | disk | FTP | other *** search
- global gSize, gCurrentColor, gFirstColor, gPatScrListSelect, gPatternThumbLoc, gPatternScreenBlend, gPatternScreenBoxHeight, gFontListBoxHeight
-
- on prepareFrame me
- gPatternScreenBoxHeight = (member("pattern screen list").lineCount * member("pattern screen list").lineHeight) - (4 * member("pattern screen list").lineHeight)
- gFontListBoxHeight = (member("fonts").lineCount * member("fonts").lineHeight) - (5 * member("fonts").lineHeight)
- if gPatScrListSelect = 1 then
- member("pattern screen preview").image.fill(member("pattern screen preview").rect, rgb(255, 255, 255))
- member("pattern temp").image.fill(member("pattern temp").rect, paletteIndex(0))
- member("pattern screen list").scrollTop = 0
- hilite char 1 to member("pattern screen list").text.line[1].length + 1 of field "pattern screen list"
- sprite(235).blend = 100
- put "100" into field "pattern screen opacity"
- gPatternThumbLoc = sprite(159).locV
- gPatternScreenBlend = sprite(235).blend
- gPatScrListSelect = VOID
- else
- sprite(159).locV = gPatternThumbLoc
- sprite(235).blend = gPatternScreenBlend
- put gPatternScreenBlend into field "pattern screen opacity"
- end if
- if the text of field "current font" = line 1 of field "fonts" then
- hilite char 1 to member("fonts").text.line[1].length + 1 of field "fonts"
- end if
- if sprite(47).rect = rect(598, 43, 622, 67) then
- nothing()
- else
- sprite(47).rect = rect(598, 13, 622, 37)
- gCurrentColor = gFirstColor
- sendSprite(181, #updatecolors)
- end if
- if the text of field "font size" > (integer(gSize) * 2) then
- set the text of field "font size" to string(integer(gSize) * 2)
- member("image text").fontSize = integer(gSize) * 2
- end if
- if the text of field "kerning" < -(integer(gSize) / 8) then
- set the text of field "kerning" to string(-(integer(gSize) / 8))
- member("image text").CharSpacing = -(integer(gSize) / 8)
- else
- if the text of field "kerning" > (integer(gSize) / 8) then
- set the text of field "kerning" to string(integer(gSize) / 8)
- member("image text").CharSpacing = integer(gSize) / 8
- end if
- end if
- end
-